import request from '@/utils/request'

// 查询供应机构列表
export function listSupinstitution(query) {
  return request({
    url: '/supply/supinstitution/list',
    method: 'get',
    params: query
  })
}

// 查询供应机构详细
export function getSupinstitution(id) {
  return request({
    url: '/supply/supinstitution/' + id,
    method: 'get'
  })
}

// 新增供应机构
export function addSupinstitution(data) {
  return request({
    url: '/supply/supinstitution',
    method: 'post',
    data: data
  })
}

// 修改供应机构
export function updateSupinstitution(data) {
  return request({
    url: '/supply/supinstitution',
    method: 'put',
    data: data
  })
}

// 删除供应机构
export function delSupinstitution(id) {
  return request({
    url: '/supply/supinstitution/' + id,
    method: 'delete'
  })
}
